const routes = [
    {
        path: '/',
        component: resolve => require(["@/views/Home.vue"], resolve),
        redirect: '/vue',
        children: [
            {
                path: "/vue",
                name: "vue",
                component: resolve => require(["@/views/pages/vue.vue"], resolve),
            },
            {
                path: "/react",
                name: "react",
                component: resolve => require(["@/views/pages/react.vue"], resolve),
            },
            {
                path: "/angular",
                name: "angular",
                component: resolve => require(["@/views/pages/angular.vue"], resolve),
            },
            {
                path: "/spring",
                name: "spring",
                component: resolve => require(["@/views/pages/spring.vue"], resolve),
            },
            {
                path: "/springBoot",
                name: "springBoot",
                component: resolve => require(["@/views/pages/springBoot.vue"], resolve),
            },
            {
                path: "/mysql",
                name: "mysql",
                component: resolve => require(["@/views/pages/mysql.vue"], resolve),
            },
            {
                path: "/redis",
                name: "redis",
                component: resolve => require(["@/views/pages/redis.vue"], resolve),
            },
            {
                path: "/mybatis",
                name: "mybatis",
                component: resolve => require(["@/views/pages/mybatis.vue"], resolve),
            },
            {
                path: "/onlyOne",
                name: "onlyOne",
                component: resolve => require(["@/views/pages/onlyOne.vue"], resolve),
            },
        ]
    },
    {
        path: '/login',
        component: resolve => require(["@/views/login.vue"], resolve),
    }
]
export default routes